#-*- coding:gb18030 -*-
#$Id: middleware.py 33078 2008-09-08 08:40:58Z jorwen@NETEASE.COM $

from v4a.exceptions import *

class ExceptionMiddleware:

	def process_exception(self, request, e):
		if isinstance(e, V4aException):
			return render_to_response('v4a/exception.html', {'errmsg':e.what()}) 
		else: 
			raise


